<%@ page import="org.openehr.am.archetype.constraintmodel.*" %>

<%--
// in: cAttribute (${cAttribute.rmAttributeName}) (${cAttribute.class})<br/>
--%>

<div class="cobjects">
  <g:render template="templates/cObject"
            var="cObject"
            collection="${cAttribute.children}"
            model="[archetype: archetype, archetypeService: archetypeService]" />
</div>

<%--
NO USAR CARDINALITY DE CATTRIBUTE PARA VER SI AGREGO MAS DE UN NODO, USAR 'occurrences' de CObject.
<g:if test="${cAttribute instanceof CMultipleAttribute}">
  <!-- no acotado superiormente -->
  <g:if test="${cAttribute.cardinality.interval.upper == null}">
    <div class="multiple">
      <a href="#" class="clone">Agregar entrada</a>
    </div>
  </g:if>
</g:if>
--%>
